package sdkshell.kuaiyan.com.kuaiyansdk.http;


import java.util.Map;

import sdkshell.kuaiyan.com.kuaiyansdk.http.Ihttp.NetBuilderConfig;
import sdkshell.kuaiyan.com.kuaiyansdk.http.callback.HttpCallBack;
import sdkshell.kuaiyan.com.kuaiyansdk.http.enums.RequestType;

/**
 * Created by Max on 2016/6/23.
 */
public interface Net {

    Net init(NetBuilderConfig config);

    NetBuilderConfig getConfig();

    Net setUrl(String url);

    Net add(String key, String value);

    Net add(Map<String, String> map);

    Net setRequestType(RequestType type);


    void requestNet_info(HttpCallBack andyCallBack);

    void download(HttpCallBack andyCallBack);

    void upload(HttpCallBack andyCallBack);

    void releaseConnection();

}
